import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import city from '@/components/city'
import mine from '@/components/mine'
import search from '@/components/search'
import cate from '@/components/cate'
import login from '@/components/login'
import forget from '@/components/forget'
import help from '@/components/help'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/city',
      name: 'city',
      component: city
    },
    {
      path: '/mine',
      name: 'mine',
      component: mine
    },
    {
      path: '/search',
      name: 'search',
      component: search
    },
    {
      path: '/cate',
      name: 'cate',
      component: cate
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/forget',
      name: 'forget',
      component: forget
    },
    {
      path: '/help',
      name: 'help',
      component: help
    }
  ]
})
